﻿using Test30.Core;

namespace Test30.Engine
{
    public enum EffectType
    {
        Hit,
        Stab,
        Slash,
        Arrow,
        Stone,
        Bolt,
        Ball,
        BallTrail,
        Cone,
        ConeTrail,
        Teleport
    }

    public class Effect:IPosition
    {
        public Vec Position { get; }
        public Direction Direction { get; }
        public EffectType Type { get; }
        public Element Element { get; }

        public Effect(Vec pos, Direction direction, EffectType type, Element element)
        {
            Position = pos;
            Direction = direction;
            Type = type;
            Element = element;
        }

        public Effect(Vec pos, EffectType type, Element element)
            : this(pos, Direction.None, type, element)
        {
        }
    }
}
